const modules = {
  admin: 'admin',
};

const admin = modules.admin;
const system = admin + '/system';
const user_center = admin + '/userCenter';

const url = {
  // 用户登录
  userLogin: admin + '/login',
  /**
   * 个人中心
   */
  setInfo: user_center + '/setInfo',
  setPassword: user_center + '/setPassword',
  setPhone: user_center + '/setPhone',
  setTheme: user_center + '/setTheme',

  // 获取用户列表
  userList: admin + '/user/list',

  // 权限列表
  authList: admin + '/auth/list',

  // 登录日志
  loginList: admin + '/login/list',

  // 设置用户角色
  setUserRole: system + '/setUserRole',
  // 获取用户配置
  getUserConfig: system + '/getUserConfig',
  // 给用户授权
  setUserAuth: system + '/setUserAuth',
  // 给角色授权
  setRoleAuth: system + '/setRoleAuth',
  // 获取角色授权
  getRoleAuth: system + '/getRoleAuth',

  // 设置会员余额
  setMemberBalance: system + '/setBalance',
};

export default url;
